'\" te
.\" Copyright (C) 2005, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH KEYLOGOUT 1 "Feb 25, 2017"
.SH NAME
keylogout \- delete stored secret key with keyserv
.SH SYNOPSIS
.LP
.nf
\fB/usr/bin/keylogout\fR [\fB-f\fR]
.fi

.SH DESCRIPTION
.LP
\fBkeylogout\fR deletes the key stored by the key server process
\fBkeyserv\fR(8). Further access to the key is revoked; however, current
session keys might remain valid until they expire or are refreshed.
.sp
.LP
Deleting the keys stored by \fBkeyserv\fR causes any background jobs or
scheduled \fBat\fR(1) jobs that need secure RPC services to fail. Since only
one copy of the key is kept on a machine, it is a bad idea to place a call to
this command in your  \fB\&.logout\fR file since it affects other sessions on
the same machine.
.SH OPTIONS
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-f\fR\fR
.ad
.RS 6n
Force \fBkeylogout\fR to delete the secret key for the superuser. By default,
\fBkeylogout\fR by the superuser is disallowed because it would break all RPC
services, such as  \fBNFS,\fR that are started by the superuser.
.RE

.SH SEE ALSO
.LP
.BR at (1),
.BR chkey (1),
.BR keylogin (1),
.BR login (1),
.BR publickey (5),
.BR attributes (7),
.BR keyserv (8),
.BR newkey (8)
